/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package photoshare.dto;

import java.io.Serializable;

/**
 *
 * @author PhotoShare
 */
public class PhotoDTO implements Serializable {

    private Integer photoID;
    private String path;
    private String status;
    private Integer view;
    private String description;

    public PhotoDTO() {
    }

    public PhotoDTO(Integer photoID) {
        this.photoID = photoID;
    }

    public PhotoDTO(Integer photoID, String path, String status, Integer view, String description) {
        this.photoID = photoID;
        this.path = path;
        this.status = status;
        this.view = view;
        this.description = description;
    }

    public Integer getPhotoID() {
        return photoID;
    }

    public void setPhotoID(Integer photoID) {
        this.photoID = photoID;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public long getView() {
        return view;
    }

    public void setView(Integer view) {
        this.view = view;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (photoID != null ? photoID.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PhotoDTO)) {
            return false;
        }
        PhotoDTO other = (PhotoDTO) object;
        if ((this.photoID == null && other.photoID != null) || (this.photoID != null && !this.photoID.equals(other.photoID))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "dto.Photos[photoID=" + photoID + "]";
    }
}
